<?php require VIEW_PATH."/header.php";?>
<body>
<div class="hd-menu-list">
    <ul>
        <li class="active"><a href="#">编辑品牌</a></li>
        <li><a href="{{U('index')}}">品牌列表</a></li>
    </ul>
</div>
	<form method="post" enctype="multipart/form-data">
    <input type="hidden" name='id' value="{{$_GET['id']}}">
<table class="hd-table hd-table-form hd-form">
    <thead>
    <tr>
        <td colspan="2">添加品牌</td>
    </tr>
    </thead>
    <tbody>
   
    <tr>
        <th>品牌名称</th>
        <td>
            <input type="text" name="name" value="{{$data['name']}}">
        </td>
    </tr>
    
    <tr>
        <th>品牌logo</th>
        <td>
            {{if value="$data['logo']"}}
            <img src="{{$data['logo']}}">            
            <input type="hidden" name="logo" value="{{$data['logo']}}">
            {{endif}}
            <input type="file" name="logo" style="display: inline-block;">
        </td>
    </tr>
    <tr>
        <th>属性</th>
        <td>
        <input id="hot" type="checkbox" name="hot" value="1">
        <label for="hot">&nbsp;热门</label>
        </td>
    </tr>
    <tr>
        <th>品牌描述</th>
        <td>
       <textarea name="remark" class="hd-w300 hd-h100">{{$data['remark']}}</textarea>
        </td>
    </tr>
    <tr>
        <td colspan="2">
        <button class="hd-btn hd-btn-primary">提交</button>
        </td>
    </tr>
    </tbody>
</table>
</form>
</body>
</html>